/* GLOBAL STYLES */
body {
    background-color: #333;
    color: #fff;
    font-family: monospace;
    margin: 0;
}

/*BASE STYLES*/
.header-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-height: 20vh;
    min-width: 100vw;
}

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: right;
    
    color: #fff;
}

.link {
    padding: 0.3em;
    text-align: right;
}

.header-right a:hover, .header-left a:hover {
    text-decoration: underline;
}

.header-right a, .header-left a{
    font-size: 17px;
    text-decoration: none;
    padding-right: 20px;
    color: #fff;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: left;
    color: #fff;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    position: relative;
    margin: 0;
    overflow: hidden;
}

.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    min-width: 100vw;
}

.faded {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #333;
    opacity: 1; 
    transition: opacity 1s ease-in-out;
    z-index: 2;
}

.intro-writer h1 {
    position: relative;
    font-size: 5em;
    color: #fff;
    justify-content: center;
    font-family: monospace;
    white-space: nowrap;
    letter-spacing: .15em;
    border-right: .135em solid;
    animation: blink-caret .5s ease-in infinite;
    z-index: 10;
}

.description {
    position: relative;
    z-index: 0;
    max-width: 80vw;
    color: #fff;
}

.testing {
    color: #fff;
    position: relative;
}

@keyframes blink-caret {
    from, to {border-color: transparent}
    50% {border-color: #fff}
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #CBD5C3;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #B2C2A7;
}

/*FIX THIS ASAP. NOT WORKING ON SCREENS LONGER THAN LEFT MONITOR WHEN FULL PAGE ISN'T USED*/
.bottom-menu {
    position: relative;
    z-index: 0;
    max-width: 80vw;
    color: #fff;
    padding-top: 50px;
    padding-bottom: 10px;
    bottom: 0;
}

.skills-container {
    min-width: 80vw;
}

/* MOBILE STYLES */
@media (max-width: 989.98px) {
    body::-webkit-scrollbar {
        display: none;
    }

    .description {
        max-width: 80vw;
    }

    .bottom-menu {
        min-width: 100vw;
        text-align: center;
    }

    .skills-container {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .header-container {
        flex-direction: column;
        /*background-color: pink;*/
        align-items: center;
        max-height: none;
        margin-left: 20px;
        padding: 1em;
    }

    .header-left, .header-right {
        flex: 1;
        display: flex;
        flex-direction: column ;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0; /* Remove padding for mobile */
    }

    .header-right {
        padding-top: 1em;
    }

    .intro-writer h1 {
        font-size: 3em;
    }

    .intro-container {
        min-height: auto;
        width: calc(100% - 26px);
        /*margin-left: 10px;*/
    }

    .description {
        padding-top: 25px;
        text-align: center;
    }

    .main-container {
        align-items: flex-start;
    }

    .link {
        padding: 0.7em;
    }
}

@media (max-width: 639.98px) {
    .intro-writer h1 {
        font-size: 2.5em;
    }
}